Search
Pen Constructor (Brush, Color, string, Number)
See Also
 






Initializes a new instance of the Pen class.

Namespace: MindFusion.Drawing
File: Pen.js

 Syntax

JavaScript  Copy Code

function Pen (brush, [width])

 Parameters

brush

Type: Brush, Color, string
The color of this pen.

width
Optional.

The width of this pen.

 Example

The following code customizes the ToolTip-s rendered over chart elements:

JavaScript  Copy Code
// customize tooltips
ToolTip.position = new Point (-5, -3);
ToolTip.text = "Click on a bar to see detailed chart";
ToolTip.brush = new Drawing.Brush("#fafafa");
ToolTip.pen = new Drawing.Pen("#9caac6", 2);

 See Also